﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DBD RID: 3517
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RaidCollectionEnterNextRaidCsReq : IMessage<RaidCollectionEnterNextRaidCsReq>, IMessage, IEquatable<RaidCollectionEnterNextRaidCsReq>, IDeepCloneable<RaidCollectionEnterNextRaidCsReq>, IBufferMessage
	{
		// Token: 0x17002CA6 RID: 11430
		// (get) Token: 0x06009DD9 RID: 40409 RVA: 0x001A60E7 File Offset: 0x001A42E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RaidCollectionEnterNextRaidCsReq> Parser
		{
			get
			{
				return RaidCollectionEnterNextRaidCsReq._parser;
			}
		}

		// Token: 0x17002CA7 RID: 11431
		// (get) Token: 0x06009DDA RID: 40410 RVA: 0x001A60EE File Offset: 0x001A42EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RaidCollectionEnterNextRaidCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CA8 RID: 11432
		// (get) Token: 0x06009DDB RID: 40411 RVA: 0x001A6100 File Offset: 0x001A4300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RaidCollectionEnterNextRaidCsReq.Descriptor;
			}
		}

		// Token: 0x06009DDC RID: 40412 RVA: 0x001A6107 File Offset: 0x001A4307
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidCollectionEnterNextRaidCsReq()
		{
		}

		// Token: 0x06009DDD RID: 40413 RVA: 0x001A611C File Offset: 0x001A431C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidCollectionEnterNextRaidCsReq(RaidCollectionEnterNextRaidCsReq other) : this()
		{
			this.worldLevel_ = other.worldLevel_;
			this.isSaveData_ = other.isSaveData_;
			this.avatarList_ = other.avatarList_.Clone();
			this.raidId_ = other.raidId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009DDE RID: 40414 RVA: 0x001A6175 File Offset: 0x001A4375
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidCollectionEnterNextRaidCsReq Clone()
		{
			return new RaidCollectionEnterNextRaidCsReq(this);
		}

		// Token: 0x17002CA9 RID: 11433
		// (get) Token: 0x06009DDF RID: 40415 RVA: 0x001A617D File Offset: 0x001A437D
		// (set) Token: 0x06009DE0 RID: 40416 RVA: 0x001A6185 File Offset: 0x001A4385
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17002CAA RID: 11434
		// (get) Token: 0x06009DE1 RID: 40417 RVA: 0x001A618E File Offset: 0x001A438E
		// (set) Token: 0x06009DE2 RID: 40418 RVA: 0x001A6196 File Offset: 0x001A4396
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IsSaveData
		{
			get
			{
				return this.isSaveData_;
			}
			set
			{
				this.isSaveData_ = value;
			}
		}

		// Token: 0x17002CAB RID: 11435
		// (get) Token: 0x06009DE3 RID: 40419 RVA: 0x001A619F File Offset: 0x001A439F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x17002CAC RID: 11436
		// (get) Token: 0x06009DE4 RID: 40420 RVA: 0x001A61A7 File Offset: 0x001A43A7
		// (set) Token: 0x06009DE5 RID: 40421 RVA: 0x001A61AF File Offset: 0x001A43AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x06009DE6 RID: 40422 RVA: 0x001A61B8 File Offset: 0x001A43B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RaidCollectionEnterNextRaidCsReq);
		}

		// Token: 0x06009DE7 RID: 40423 RVA: 0x001A61C8 File Offset: 0x001A43C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RaidCollectionEnterNextRaidCsReq other)
		{
			return other != null && (other == this || (this.WorldLevel == other.WorldLevel && this.IsSaveData == other.IsSaveData && this.avatarList_.Equals(other.avatarList_) && this.RaidId == other.RaidId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009DE8 RID: 40424 RVA: 0x001A6238 File Offset: 0x001A4438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.IsSaveData != 0U)
			{
				num ^= this.IsSaveData.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009DE9 RID: 40425 RVA: 0x001A62B7 File Offset: 0x001A44B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009DEA RID: 40426 RVA: 0x001A62BF File Offset: 0x001A44BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009DEB RID: 40427 RVA: 0x001A62C8 File Offset: 0x001A44C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RaidId);
			}
			this.avatarList_.WriteTo(ref output, RaidCollectionEnterNextRaidCsReq._repeated_avatarList_codec);
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.IsSaveData != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.IsSaveData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009DEC RID: 40428 RVA: 0x001A6350 File Offset: 0x001A4550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.IsSaveData != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IsSaveData);
			}
			num += this.avatarList_.CalculateSize(RaidCollectionEnterNextRaidCsReq._repeated_avatarList_codec);
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009DED RID: 40429 RVA: 0x001A63D4 File Offset: 0x001A45D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RaidCollectionEnterNextRaidCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.IsSaveData != 0U)
			{
				this.IsSaveData = other.IsSaveData;
			}
			this.avatarList_.Add(other.avatarList_);
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009DEE RID: 40430 RVA: 0x001A6449 File Offset: 0x001A4649
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009DEF RID: 40431 RVA: 0x001A6454 File Offset: 0x001A4654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 16U)
					{
						this.RaidId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						goto IL_44;
					}
				}
				else
				{
					if (num == 50U)
					{
						goto IL_44;
					}
					if (num == 72U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.IsSaveData = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_44:
				this.avatarList_.AddEntriesFrom(ref input, RaidCollectionEnterNextRaidCsReq._repeated_avatarList_codec);
			}
		}

		// Token: 0x04003CDE RID: 15582
		private static readonly MessageParser<RaidCollectionEnterNextRaidCsReq> _parser = new MessageParser<RaidCollectionEnterNextRaidCsReq>(() => new RaidCollectionEnterNextRaidCsReq());

		// Token: 0x04003CDF RID: 15583
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003CE0 RID: 15584
		public const int WorldLevelFieldNumber = 9;

		// Token: 0x04003CE1 RID: 15585
		private uint worldLevel_;

		// Token: 0x04003CE2 RID: 15586
		public const int IsSaveDataFieldNumber = 12;

		// Token: 0x04003CE3 RID: 15587
		private uint isSaveData_;

		// Token: 0x04003CE4 RID: 15588
		public const int AvatarListFieldNumber = 6;

		// Token: 0x04003CE5 RID: 15589
		private static readonly FieldCodec<uint> _repeated_avatarList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x04003CE6 RID: 15590
		private readonly RepeatedField<uint> avatarList_ = new RepeatedField<uint>();

		// Token: 0x04003CE7 RID: 15591
		public const int RaidIdFieldNumber = 2;

		// Token: 0x04003CE8 RID: 15592
		private uint raidId_;
	}
}
